"use strict";(self.webpackChunkpeaches=self.webpackChunkpeaches||[]).push([[1299],{81299:function(e,t,r){r.d(t,{qj:function(){return disableExperimentalFragmentVariables},gi:function(){return disableFragmentWarnings},VC:function(){return enableExperimentalFragmentVariables},J1:function(){return gql},Nh:function(){return resetCaches}});var n,__assign=function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var i=r(33023),a=new Map,s=new Map,o=!0,c=!1;function normalize(e){return e.replace(/[\s,]+/g," ").trim()}function gql(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]}),function(e){var t=normalize(e);if(!a.has(t)){var r,n,p,l,u,h=(0,i.qg)(e,{experimentalFragmentVariables:c,allowLegacyFragmentVariables:c});if(!h||"Document"!==h.kind)throw Error("Not a valid GraphQL document.");a.set(t,(r=new Set,n=[],h.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,i=e.name.value,a=normalize((t=e.loc).source.body.substring(t.start,t.end)),c=s.get(i);c&&!c.has(a)?o&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):c||s.set(i,c=new Set),c.add(a),r.has(a)||(r.add(a),n.push(e))}else n.push(e)}),p=__assign(__assign({},h),{definitions:n}),(l=new Set(p.definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&l.add(r)})}),(u=p.loc)&&(delete u.startToken,delete u.endToken),p))}return a.get(t)}(n)}function resetCaches(){a.clear(),s.clear()}function disableFragmentWarnings(){o=!1}function enableExperimentalFragmentVariables(){c=!0}function disableExperimentalFragmentVariables(){c=!1}var p={gql:gql,resetCaches:resetCaches,disableFragmentWarnings:disableFragmentWarnings,enableExperimentalFragmentVariables:enableExperimentalFragmentVariables,disableExperimentalFragmentVariables:disableExperimentalFragmentVariables};(n=gql||(gql={})).gql=p.gql,n.resetCaches=p.resetCaches,n.disableFragmentWarnings=p.disableFragmentWarnings,n.enableExperimentalFragmentVariables=p.enableExperimentalFragmentVariables,n.disableExperimentalFragmentVariables=p.disableExperimentalFragmentVariables,gql.default=gql},33023:function(e,t,r){function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{qg:function(){return parse}});var n=r(84197);function getLocation(e,t){for(var r,n=/\r\n|[\n\r]/g,i=1,a=t+1;(r=n.exec(e.body))&&r.index<t;)i+=1,a=t+1-(r.index+r[0].length);return{line:i,column:a}}function printSourceLocation(e,t){var r=e.locationOffset.column-1,n=whitespace(r)+e.body,i=t.line-1,a=e.locationOffset.line-1,s=t.line+a,o=1===t.line?r:0,c=t.column+o,p="".concat(e.name,":").concat(s,":").concat(c,"\n"),l=n.split(/\r\n|[\n\r]/g),u=l[i];if(u.length>120){for(var h=Math.floor(c/80),f=c%80,d=[],E=0;E<u.length;E+=80)d.push(u.slice(E,E+80));return p+printPrefixedLines([["".concat(s),d[0]]].concat(d.slice(1,h+1).map(function(e){return["",e]}),[[" ",whitespace(f-1)+"^"],["",d[h+1]]]))}return p+printPrefixedLines([["".concat(s-1),l[i-1]],["".concat(s),u],["",whitespace(c-1)+"^"],["".concat(s+1),l[i+1]]])}function printPrefixedLines(e){var t=e.filter(function(e){return e[0],void 0!==e[1]}),r=Math.max.apply(Math,t.map(function(e){return e[0].length}));return t.map(function(e){var t=e[0],n=e[1];return whitespace(r-t.length)+t+(n?" | "+n:" |")}).join("\n")}function whitespace(e){return Array(e+1).join(" ")}function GraphQLError_typeof(e){return(GraphQLError_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _possibleConstructorReturn(e,t){return t&&("object"===GraphQLError_typeof(t)||"function"==typeof t)?t:_assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,Wrapper)}function Wrapper(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(e.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,e)})(e)}function _construct(e,t,r){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&_setPrototypeOf(i,r.prototype),i}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var i=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(GraphQLError,e);var t,r,i,a=(t=_isNativeReflectConstruct(),function(){var e,r=_getPrototypeOf(GraphQLError);if(t){var n=_getPrototypeOf(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return _possibleConstructorReturn(this,e)});function GraphQLError(e,t,r,n,i,s,o){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,GraphQLError),h=a.call(this,e);var c,p,l,u,h,f,d,E=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,v=r;!v&&E&&(v=null===(f=E[0].loc)||void 0===f?void 0:f.source);var m=n;!m&&E&&(m=E.reduce(function(e,t){return t.loc&&e.push(t.loc.start),e},[])),m&&0===m.length&&(m=void 0),n&&r?d=n.map(function(e){return getLocation(r,e)}):E&&(d=E.reduce(function(e,t){return t.loc&&e.push(getLocation(t.loc.source,t.loc.start)),e},[]));var y=o;if(null==y&&null!=s){var N=s.extensions;"object"==_typeof(N)&&null!==N&&(y=N)}return(Object.defineProperties(_assertThisInitialized(h),{name:{value:"GraphQLError"},message:{value:e,enumerable:!0,writable:!0},locations:{value:null!==(c=d)&&void 0!==c?c:void 0,enumerable:null!=d},path:{value:null!=i?i:void 0,enumerable:null!=i},nodes:{value:null!=E?E:void 0},source:{value:null!==(p=v)&&void 0!==p?p:void 0},positions:{value:null!==(l=m)&&void 0!==l?l:void 0},originalError:{value:s},extensions:{value:null!==(u=y)&&void 0!==u?u:void 0,enumerable:null!=y}}),null!=s&&s.stack)?(Object.defineProperty(_assertThisInitialized(h),"stack",{value:s.stack,writable:!0,configurable:!0}),_possibleConstructorReturn(h)):(Error.captureStackTrace?Error.captureStackTrace(_assertThisInitialized(h),GraphQLError):Object.defineProperty(_assertThisInitialized(h),"stack",{value:Error().stack,writable:!0,configurable:!0}),h)}return r=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var r=0,n=e.nodes;r<n.length;r++){var i,a=n[r];a.loc&&(t+="\n\n"+printSourceLocation((i=a.loc).source,getLocation(i.source,i.start)))}else if(e.source&&e.locations)for(var s=0,o=e.locations;s<o.length;s++){var c=o[s];t+="\n\n"+printSourceLocation(e.source,c)}return t}(this)}},{key:n.Kp,get:function(){return"Object"}}],_defineProperties(GraphQLError.prototype,r),i&&_defineProperties(GraphQLError,i),GraphQLError}(_wrapNativeSuper(Error));function syntaxError(e,t,r){return new i("Syntax Error: ".concat(r),void 0,e,[t])}var a=r(42455),s=r(17706),o=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),c=r(47343),p=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),l=r(67714),u=function(){function Lexer(e){var t=new s.ou(o.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var e=Lexer.prototype;return e.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},e.lookahead=function(){var e,t=this.token;if(t.kind!==o.EOF)do t=null!==(e=t.next)&&void 0!==e?e:t.next=function(e,t){for(var r=e.source,n=r.body,i=n.length,a=t.end;a<i;){var c=n.charCodeAt(a),p=e.line,u=1+a-e.lineStart;switch(c){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a,++e.line,e.lineStart=a;continue;case 13:10===n.charCodeAt(a+1)?a+=2:++a,++e.line,e.lineStart=a;continue;case 33:return new s.ou(o.BANG,a,a+1,p,u,t);case 35:return function(e,t,r,n,i){var a,c=e.body,p=t;do a=c.charCodeAt(++p);while(!isNaN(a)&&(a>31||9===a));return new s.ou(o.COMMENT,t,p,r,n,i,c.slice(t+1,p))}(r,a,p,u,t);case 36:return new s.ou(o.DOLLAR,a,a+1,p,u,t);case 38:return new s.ou(o.AMP,a,a+1,p,u,t);case 40:return new s.ou(o.PAREN_L,a,a+1,p,u,t);case 41:return new s.ou(o.PAREN_R,a,a+1,p,u,t);case 46:if(46===n.charCodeAt(a+1)&&46===n.charCodeAt(a+2))return new s.ou(o.SPREAD,a,a+3,p,u,t);break;case 58:return new s.ou(o.COLON,a,a+1,p,u,t);case 61:return new s.ou(o.EQUALS,a,a+1,p,u,t);case 64:return new s.ou(o.AT,a,a+1,p,u,t);case 91:return new s.ou(o.BRACKET_L,a,a+1,p,u,t);case 93:return new s.ou(o.BRACKET_R,a,a+1,p,u,t);case 123:return new s.ou(o.BRACE_L,a,a+1,p,u,t);case 124:return new s.ou(o.PIPE,a,a+1,p,u,t);case 125:return new s.ou(o.BRACE_R,a,a+1,p,u,t);case 34:if(34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2))return function(e,t,r,n,i,a){for(var c=e.body,p=t+3,u=p,h=0,f="";p<c.length&&!isNaN(h=c.charCodeAt(p));){if(34===h&&34===c.charCodeAt(p+1)&&34===c.charCodeAt(p+2))return f+=c.slice(u,p),new s.ou(o.BLOCK_STRING,t,p+3,r,n,i,(0,l.i$)(f));if(h<32&&9!==h&&10!==h&&13!==h)throw syntaxError(e,p,"Invalid character within String: ".concat(printCharCode(h),"."));10===h?(++p,++a.line,a.lineStart=p):13===h?(10===c.charCodeAt(p+1)?p+=2:++p,++a.line,a.lineStart=p):92===h&&34===c.charCodeAt(p+1)&&34===c.charCodeAt(p+2)&&34===c.charCodeAt(p+3)?(f+=c.slice(u,p)+'"""',p+=4,u=p):++p}throw syntaxError(e,p,"Unterminated string.")}(r,a,p,u,t,e);return function(e,t,r,n,i){for(var a=e.body,c=t+1,p=c,l=0,u="";c<a.length&&!isNaN(l=a.charCodeAt(c))&&10!==l&&13!==l;){if(34===l)return u+=a.slice(p,c),new s.ou(o.STRING,t,c+1,r,n,i,u);if(l<32&&9!==l)throw syntaxError(e,c,"Invalid character within String: ".concat(printCharCode(l),"."));if(++c,92===l){switch(u+=a.slice(p,c-1),l=a.charCodeAt(c)){case 34:u+='"';break;case 47:u+="/";break;case 92:u+="\\";break;case 98:u+="\b";break;case 102:u+="\f";break;case 110:u+="\n";break;case 114:u+="\r";break;case 116:u+=" ";break;case 117:var h,f,d,E,v=(h=a.charCodeAt(c+1),f=a.charCodeAt(c+2),d=a.charCodeAt(c+3),E=a.charCodeAt(c+4),char2hex(h)<<12|char2hex(f)<<8|char2hex(d)<<4|char2hex(E));if(v<0){var m=a.slice(c+1,c+5);throw syntaxError(e,c,"Invalid character escape sequence: \\u".concat(m,"."))}u+=String.fromCharCode(v),c+=4;break;default:throw syntaxError(e,c,"Invalid character escape sequence: \\".concat(String.fromCharCode(l),"."))}p=++c}}throw syntaxError(e,c,"Unterminated string.")}(r,a,p,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,r,n,i,a){var c,p=e.body,l=r,u=t,h=!1;if(45===l&&(l=p.charCodeAt(++u)),48===l){if((l=p.charCodeAt(++u))>=48&&l<=57)throw syntaxError(e,u,"Invalid number, unexpected digit after 0: ".concat(printCharCode(l),"."))}else u=readDigits(e,u,l),l=p.charCodeAt(u);if(46===l&&(h=!0,l=p.charCodeAt(++u),u=readDigits(e,u,l),l=p.charCodeAt(u)),(69===l||101===l)&&(h=!0,(43===(l=p.charCodeAt(++u))||45===l)&&(l=p.charCodeAt(++u)),u=readDigits(e,u,l),l=p.charCodeAt(u)),46===l||95===(c=l)||c>=65&&c<=90||c>=97&&c<=122)throw syntaxError(e,u,"Invalid number, expected digit but got: ".concat(printCharCode(l),"."));return new s.ou(h?o.FLOAT:o.INT,t,u,n,i,a,p.slice(t,u))}(r,a,c,p,u,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,r,n,i){for(var a=e.body,c=a.length,p=t+1,l=0;p!==c&&!isNaN(l=a.charCodeAt(p))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++p;return new s.ou(o.NAME,t,p,r,n,i,a.slice(t,p))}(r,a,p,u,t)}throw syntaxError(r,a,c<32&&9!==c&&10!==c&&13!==c?"Cannot contain the invalid character ".concat(printCharCode(c),"."):39===c?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(printCharCode(c),"."))}var h=e.line,f=1+a-e.lineStart;return new s.ou(o.EOF,i,i,h,f,t)}(this,t);while(t.kind===o.COMMENT);return t},Lexer}();function printCharCode(e){return isNaN(e)?o.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function readDigits(e,t,r){var n=e.body,i=t,a=r;if(a>=48&&a<=57){do a=n.charCodeAt(++i);while(a>=48&&a<=57);return i}throw syntaxError(e,i,"Invalid number, expected digit but got: ".concat(printCharCode(a),"."))}function char2hex(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function parse(e,t){return new h(e,t).parseDocument()}var h=function(){function Parser(e,t){var r=(0,c._)(e)?e:new c.k(e);this._lexer=new u(r),this._options=t}var e=Parser.prototype;return e.parseName=function(){var e=this.expectToken(o.NAME);return{kind:a.b.NAME,value:e.value,loc:this.loc(e)}},e.parseDocument=function(){var e=this._lexer.token;return{kind:a.b.DOCUMENT,definitions:this.many(o.SOF,this.parseDefinition,o.EOF),loc:this.loc(e)}},e.parseDefinition=function(){if(this.peek(o.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else if(this.peek(o.BRACE_L))return this.parseOperationDefinition();else if(this.peekDescription())return this.parseTypeSystemDefinition();throw this.unexpected()},e.parseOperationDefinition=function(){var e,t=this._lexer.token;if(this.peek(o.BRACE_L))return{kind:a.b.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)};var r=this.parseOperationType();return this.peek(o.NAME)&&(e=this.parseName()),{kind:a.b.OPERATION_DEFINITION,operation:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},e.parseOperationType=function(){var e=this.expectToken(o.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},e.parseVariableDefinitions=function(){return this.optionalMany(o.PAREN_L,this.parseVariableDefinition,o.PAREN_R)},e.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:a.b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(o.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(o.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},e.parseVariable=function(){var e=this._lexer.token;return this.expectToken(o.DOLLAR),{kind:a.b.VARIABLE,name:this.parseName(),loc:this.loc(e)}},e.parseSelectionSet=function(){var e=this._lexer.token;return{kind:a.b.SELECTION_SET,selections:this.many(o.BRACE_L,this.parseSelection,o.BRACE_R),loc:this.loc(e)}},e.parseSelection=function(){return this.peek(o.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function(){var e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(o.COLON)?(e=n,t=this.parseName()):t=n,{kind:a.b.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(o.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},e.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(o.PAREN_L,t,o.PAREN_R)},e.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(o.COLON),{kind:a.b.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},e.parseConstArgument=function(){var e=this._lexer.token;return{kind:a.b.ARGUMENT,name:this.parseName(),value:(this.expectToken(o.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},e.parseFragment=function(){var e=this._lexer.token;this.expectToken(o.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(o.NAME)?{kind:a.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:a.b.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},e.parseFragmentDefinition=function(){var e,t=this._lexer.token;return(this.expectKeyword("fragment"),(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)===!0)?{kind:a.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:a.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},e.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},e.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case o.BRACKET_L:return this.parseList(e);case o.BRACE_L:return this.parseObject(e);case o.INT:return this._lexer.advance(),{kind:a.b.INT,value:t.value,loc:this.loc(t)};case o.FLOAT:return this._lexer.advance(),{kind:a.b.FLOAT,value:t.value,loc:this.loc(t)};case o.STRING:case o.BLOCK_STRING:return this.parseStringLiteral();case o.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:a.b.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:a.b.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:a.b.NULL,loc:this.loc(t)};default:return{kind:a.b.ENUM,value:t.value,loc:this.loc(t)}}case o.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},e.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:a.b.STRING,value:e.value,block:e.kind===o.BLOCK_STRING,loc:this.loc(e)}},e.parseList=function(e){var t=this,r=this._lexer.token;return{kind:a.b.LIST,values:this.any(o.BRACKET_L,function(){return t.parseValueLiteral(e)},o.BRACKET_R),loc:this.loc(r)}},e.parseObject=function(e){var t=this,r=this._lexer.token;return{kind:a.b.OBJECT,fields:this.any(o.BRACE_L,function(){return t.parseObjectField(e)},o.BRACE_R),loc:this.loc(r)}},e.parseObjectField=function(e){var t=this._lexer.token,r=this.parseName();return this.expectToken(o.COLON),{kind:a.b.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e),loc:this.loc(t)}},e.parseDirectives=function(e){for(var t=[];this.peek(o.AT);)t.push(this.parseDirective(e));return t},e.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(o.AT),{kind:a.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},e.parseTypeReference=function(){var e,t=this._lexer.token;return(this.expectOptionalToken(o.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(o.BRACKET_R),e={kind:a.b.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(o.BANG))?{kind:a.b.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},e.parseNamedType=function(){var e=this._lexer.token;return{kind:a.b.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},e.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===o.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},e.peekDescription=function(){return this.peek(o.STRING)||this.peek(o.BLOCK_STRING)},e.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},e.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var r=this.parseDirectives(!0),n=this.many(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);return{kind:a.b.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n,loc:this.loc(e)}},e.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(o.COLON);var r=this.parseNamedType();return{kind:a.b.OPERATION_TYPE_DEFINITION,operation:t,type:r,loc:this.loc(e)}},e.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName(),n=this.parseDirectives(!0);return{kind:a.b.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},e.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),s=this.parseFieldsDefinition();return{kind:a.b.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:s,loc:this.loc(e)}},e.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if((null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)===!0){var t=[];this.expectOptionalToken(o.AMP);do t.push(this.parseNamedType());while(this.expectOptionalToken(o.AMP)||this.peek(o.NAME));return t}return this.delimitedMany(o.AMP,this.parseNamedType)},e.parseFieldsDefinition=function(){var e;return(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)===!0&&this.peek(o.BRACE_L)&&this._lexer.lookahead().kind===o.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(o.BRACE_L,this.parseFieldDefinition,o.BRACE_R)},e.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(o.COLON);var i=this.parseTypeReference(),s=this.parseDirectives(!0);return{kind:a.b.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:s,loc:this.loc(e)}},e.parseArgumentDefs=function(){return this.optionalMany(o.PAREN_L,this.parseInputValueDef,o.PAREN_R)},e.parseInputValueDef=function(){var e,t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(o.COLON);var i=this.parseTypeReference();this.expectOptionalToken(o.EQUALS)&&(e=this.parseValueLiteral(!0));var s=this.parseDirectives(!0);return{kind:a.b.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:e,directives:s,loc:this.loc(t)}},e.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),s=this.parseFieldsDefinition();return{kind:a.b.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:s,loc:this.loc(e)}},e.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:a.b.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i,loc:this.loc(e)}},e.parseUnionMemberTypes=function(){return this.expectOptionalToken(o.EQUALS)?this.delimitedMany(o.PIPE,this.parseNamedType):[]},e.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:a.b.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i,loc:this.loc(e)}},e.parseEnumValuesDefinition=function(){return this.optionalMany(o.BRACE_L,this.parseEnumValueDefinition,o.BRACE_R)},e.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseDirectives(!0);return{kind:a.b.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},e.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:a.b.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},e.parseInputFieldsDefinition=function(){return this.optionalMany(o.BRACE_L,this.parseInputValueDef,o.BRACE_R)},e.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===o.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},e.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.optionalMany(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return{kind:a.b.SCHEMA_EXTENSION,directives:t,operationTypes:r,loc:this.loc(e)}},e.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),r=this.parseDirectives(!0);if(0===r.length)throw this.unexpected();return{kind:a.b.SCALAR_TYPE_EXTENSION,name:t,directives:r,loc:this.loc(e)}},e.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:a.b.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},e.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:a.b.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},e.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:a.b.UNION_TYPE_EXTENSION,name:t,directives:r,types:n,loc:this.loc(e)}},e.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:a.b.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n,loc:this.loc(e)}},e.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:a.b.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},e.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(o.AT);var r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var s=this.parseDirectiveLocations();return{kind:a.b.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:s,loc:this.loc(e)}},e.parseDirectiveLocations=function(){return this.delimitedMany(o.PIPE,this.parseDirectiveLocation)},e.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==p[t.value])return t;throw this.unexpected(e)},e.loc=function(e){var t;if((null===(t=this._options)||void 0===t?void 0:t.noLocation)!==!0)return new s.aZ(e,this._lexer.lastToken,this._lexer.source)},e.peek=function(e){return this._lexer.token.kind===e},e.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw syntaxError(this._lexer.source,t.start,"Expected ".concat(getTokenKindDesc(e),", found ").concat(getTokenDesc(t),"."))},e.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},e.expectKeyword=function(e){var t=this._lexer.token;if(t.kind===o.NAME&&t.value===e)this._lexer.advance();else throw syntaxError(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(getTokenDesc(t),"."))},e.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===o.NAME&&t.value===e&&(this._lexer.advance(),!0)},e.unexpected=function(e){var t=null!=e?e:this._lexer.token;return syntaxError(this._lexer.source,t.start,"Unexpected ".concat(getTokenDesc(t),"."))},e.any=function(e,t,r){this.expectToken(e);for(var n=[];!this.expectOptionalToken(r);)n.push(t.call(this));return n},e.optionalMany=function(e,t,r){if(this.expectOptionalToken(e)){var n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}return[]},e.many=function(e,t,r){this.expectToken(e);var n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n},e.delimitedMany=function(e,t){this.expectOptionalToken(e);var r=[];do r.push(t.call(this));while(this.expectOptionalToken(e));return r},Parser}();function getTokenDesc(e){var t=e.value;return getTokenKindDesc(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function getTokenKindDesc(e){return e===o.BANG||e===o.DOLLAR||e===o.AMP||e===o.PAREN_L||e===o.PAREN_R||e===o.SPREAD||e===o.COLON||e===o.EQUALS||e===o.AT||e===o.BRACKET_L||e===o.BRACKET_R||e===o.BRACE_L||e===o.PIPE||e===o.BRACE_R?'"'.concat(e,'"'):e}}}]);